#!/user/bin/python
# -*- coding: UTF-8 -*-
# 题目：按逗号或分号分隔列表。
L = [1, 2, 3, 4, 5]
for i in L:
    print i
s1 = ','.join(str(n) for n in L)
s2 = ';'.join(str(n) for n in L)
print s1
print s2